package cn.itsource.hrm.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenyuqi
 * @version v1.0.0
 * @date 2020/5/22
 */
@FeignClient(name = "REDIS-SERVER")
public interface RedisClient {
    /*** 设置值 *
     *  @param key
     * @param value
     */
    @GetMapping("/set")
    void set(@RequestParam("key")String key, @RequestParam("value")String value);



    /*** 获取值 * @param key
     * @return
     */
    @GetMapping("/get")
    String get(@RequestParam("key")String key);

    @GetMapping("/setex")
    public void setex(@RequestParam("key")String key,@RequestParam("value")String value,@RequestParam("second") Integer second);

}
